package app.system.controll;

import app.system.entity.SysSinger;
import app.system.service.SysSingerService;
import app.utils.Result.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class SingerControll {
    @Autowired
    private SysSingerService sysSingerService;

    @PostMapping("singerSearch")
    public AjaxResult singerSearch(@RequestBody SysSinger sysSinger){
        return AjaxResult.success(sysSingerService.selectSingerByLike(sysSinger.getSinger_name()));
    }
}
